package com.lagou.task09;

public abstract class Account {
    private int money;

    public Account() {
    }

    public Account(int money) {
        setMoney(money);
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(int money) {
        if(money>=0) {
            this.money =  money;
        } else{
            System.out.println("money不合理哦!!!");
        }
    }

    public abstract double getLiXi();
}
